//
//  NSString+OXExtension.h
//  XHCoach
//
//  Created by 陈强 on 16/5/18.
//  Copyright © 2016年 com.apis. All rights reserved.
//

#import <Foundation/Foundation.h>

@interface NSString (OXExtension)
/**
 * 计算富文本size
 */
-(CGSize)boundingRectWithSize:(CGSize)size
                 withTextFont:(UIFont *)font
              withLineSpacing:(CGFloat)lineSpacing
            withLineBreakMode:(NSLineBreakMode)breakMode;


/**
 * 获取富文本
 */
-(NSMutableAttributedString *)attributedStringFromStingWithFont:(UIFont *)font
                                                withLineSpacing:(CGFloat)lineSpacing
                                              withLineBreakMode:(NSLineBreakMode)breakMode;

/**
 *  计算分秒
 */
+ (NSString *)stringWithTime:(NSTimeInterval)time;
@end
